﻿using System.IO;
using System.Reflection;

using IdeaNMR.Shared.Utils;

namespace IdeaNMR.Web.Core
{
    public class InitiateDatabase
    {
        public static string LoadScript(string fileName)
        {
            string fullName = "IdeaNMR.Web.Core.ExampleSetup." + fileName;
            return new StreamReader(Assembly.GetExecutingAssembly().GetManifestResourceStream(fullName)).ReadToEnd().ToLocalNewLine();
        }
    }
}
